const app = getApp()
Component({
  properties: {
    // defaultData（父页面传递的数据）
    active: {
     type:Number,
     default:0
    }
  },
  data: {
    navBarHeight: app.globalData.navBarHeight,
    menuRight: app.globalData.menuRight,
    menuTop: app.globalData.menuTop,
    menuHeight: app.globalData.menuHeight,
  },
  attached: function () {

  },
  methods: {
    onChange(e){
      this.triggerEvent('changeIndex',e.detail.index)
    }
  }
})
